<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>店铺明细</title>
</head>
<body class="nav-md">

	<!-- /top navigation -->

	<!-- page content -->
	<div class="">
		<!--<div class="page-title">-->
			<!--<div class="title_left">-->
				<!--<h3>-->
					<!--店铺明细<small></small>-->
				<!--</h3>-->
			<!--</div>-->
		<!--</div>-->

		<div class="clearfix"></div>

		<div class="row">
			<div class="col-md-12 col-sm-12 col-xs-12">
				<div class="x_panel">
					<div class="x_title">
						<h3>店铺明细</h3>
						<div class="clearfix"></div>
					</div>
					<div class="x_content">
						<!--<p class="text-muted font-13 m-b-30">店铺明细</p>-->

						<ul id="myTab1" class="nav nav-tabs bar_tabs" role="tablist">
							<li role="presentation" class="[#if type==0]active[/#if]"><a
								href="javascript:void(0)"
								onclick="pjaxContent('/shop/shopdetail?type=0')">所有商品列表</a></li>
							<li role="presentation" class="[#if type==1]active[/#if]"><a
								href="javascript:void(0)"
								onclick="pjaxContent('/shop/shopdetail?type=1')">所有店铺供应商列表</a></li>
						</ul>
						
						[#if type==1]
						<!-- 下拉选择 -->
						<div  class="col-xs-3">
							<label class="control-label ">集采供应商：</label>
							<div class="col-md-6 col-sm-6 col-xs-12" style="padding-left: 0px;float: none;  display: inline-block;vertical-align: middle;">
								<select class="form-control" name="so_select" id="so_select"">
									<option value=''>全部</option>
									<option [#if so_select ?? && so_select==0] selected='selected'[/#if] value='0'>是</option>
									<option [#if so_select ?? &&  so_select==1] selected='selected'[/#if] value='1'>否</option>
								</select>
							</div>
						</div>
						[/#if]
						
						<!-- 搜索 -->
						<div style="padding-left: 0px;display: inline-block;">
						<label>名称：</label>
							<div style="    display: inline-block; vertical-align: middle; margin-left: 5px;">
								<input name="so_search" id="so_search" value="[#if so_search??]${so_search!}[/#if]" class="form-control" type="text" placeholder="[#if type==0]商品名称/公司名称/品类[#else]公司名称[/#if]"> <span
									class="input-group-btn">
								</span>
							</div>
						</div>
						
						<div style="float:right">
						<div class="form-group">
						<button type="button" onclick="search();" class="btn btn-primary">搜索</button>
							<button type="button" onclick="reset();" class="btn btn-danger">重置</button>
                          <button type="submit" id="outexcel" onclick="exportShopListExcel();" class="btn btn-success">导出EXCEL</button>
                        </div>
						</div>
						<input type="hidden" id="type" value="${type!}">
						<table id="datatable" class="table table-striped table-bordered">
							<thead>
								[#if type==0]
								<tr>
									<th style="">商品名称</th>
									<th>供应商</th>
									<th>型号</th>
									<th>品牌</th>
									<th>品类</th>
									<th>规格</th>
									<th style="width: 6%;">市场价</th>
									<th style="width: 6%;">集采价</th>
									<th style="width: 6%;">会员价</th>
									<th style="width: 6%;">爆品价</th>
									<th style="width: 6%;">订单数量</th>
								</tr>
								[/#if] 
								[#if type==1]
								<tr>
									<th>供应商</th>
									<th>产品数量</th>
									<th>已成交数量</th>
									<th>已成交金额</th>
									<th>是否集采供应商</th>
								</tr>
								[/#if] 
							</thead>
						</table>
					</div>
				</div>
			</div>

		</div>
	</div>
	<!-- /page content -->

	<!-- userdataTable -->
	<script src="/res/build/js/shop/shopDataTables.js"></script>
</body>
</html>